package testes;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class Embaralhar {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		
		char[] opcoes = "ABCDE".toCharArray();   
		  
		List<Character> ocharaters  = new ArrayList<Character>(opcoes.length);   
		  
		for (char c:  opcoes ){   
		  ocharaters.add(c); // autoboxing   
		}   
		  
		Collections.shuffle(ocharaters);   
		  
		for ( int i =0; i < opcoes.length ; i++ ){   
		     opcoes[i] = ocharaters.get(i); // unboxing   
		}   
		  
		String opcoesEmbaralhada = new String(opcoes);  
		  
		  System.out.println(opcoesEmbaralhada);		  
	
	}
}


